// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.worldMap;

import java.util.ArrayList;

public final class WorldMapCell {
    public int m_x;
    public int m_y;
    public final ArrayList<WorldMapFeature> m_features = new ArrayList();

    public void hitTest(float x, float y, ArrayList<WorldMapFeature> features) {
        x -= (float)(this.m_x * 300);
        y -= (float)(this.m_y * 300);

        for (int _int = 0; _int < this.m_features.size(); _int++) {
            WorldMapFeature worldMapFeature = (WorldMapFeature)this.m_features.get(_int);
            if (worldMapFeature.containsPoint(x, y)) {
                features.add(worldMapFeature);
            }
        }
    }

    public void dispose() {
        for (WorldMapFeature worldMapFeature : this.m_features) {
            worldMapFeature.dispose();
        }

        this.m_features.clear();
    }
}
